#ifndef CHARARRAY_H_
#define CHARARRAY_H_

#include <string>

namespace opsrc {
	namespace stdf {

		class CharArray
		{
		public:
			CharArray();
			CharArray(char* buffer, int bufsize);
			CharArray(const CharArray& cp );
			virtual ~CharArray();
			
			// operator function
			CharArray& operator = (const CharArray& rhs );
			bool operator ==  (const CharArray& rhs ) const;
			bool operator !=  (const CharArray& rhs ) const;
			bool operator < (const CharArray& rhs ) const; 
			
			char* getBuffer() const;
			int getSize() const;
            std::string toHex() const;
			
		private:
		    char* buf;
		    int size;
			
			
			
		};

	}
}

#endif /*CHARARRAY_H_*/
